package com.bdqn.ch03.SZ.sz3.jdk;

import org.apache.log4j.Logger;

/**
 * MessageDebugJdkProxyTest
 * 使用JDK动态代理显示Debug信息
 * @aurhor Administrator  whs
 * @since 2024/7/8
 */
public class MessageDebugJdkProxyTest {

    private static Logger logger = Logger.getLogger(MessageDebugJdkProxyTest.class);

    public static void main(String[] args) {

        MessageDebug messageDebug = MessageDebugJdkProxyFactory.createMessage(new LookMessageDebug());
        String result = messageDebug.getMessages();
        logger.debug(result);
    }
    /**
     * 2024-07-08 09:28:07 [DEBUG] 通过抽象主题接口实现查看debug信息~~ com.bdqn.ch03.SZ.sz3.jdk.LookMessageDebug.getMessages(LookMessageDebug.java:24)
     * 2024-07-08 09:28:07 [DEBUG] 今天天气真好，天空很蔚蓝 com.bdqn.ch03.SZ.sz3.jdk.MessageAgency.weather(MessageAgency.java:46)
     * 2024-07-08 09:28:07 [DEBUG] 就是热的有点遭不住了 com.bdqn.ch03.SZ.sz3.jdk.MessageAgency.weather(MessageAgency.java:47)
     * 2024-07-08 09:28:07 [DEBUG] 今天心情蛮好~ com.bdqn.ch03.SZ.sz3.jdk.MessageAgency.mood(MessageAgency.java:54)
     * 2024-07-08 09:28:07 [DEBUG] 又是开心的一天~ com.bdqn.ch03.SZ.sz3.jdk.MessageAgency.mood(MessageAgency.java:55)
     * 2024-07-08 09:28:07 [DEBUG] 现在是2024年7月8日  现在是 【 2024/7/8  08:49 】 噜噜噜 com.bdqn.ch03.SZ.sz3.jdk.MessageDebugJdkProxyTest.main(MessageDebugJdkProxyTest.java:19)
     */

}
